package com.ruoyi.mall.mapper;

import java.util.List;
import com.ruoyi.mall.domain.OrderProductAssociation;

/**
 * 订单-产品关联Mapper接口
 * 
 * @author luogongquan
 * @date 2024-10-18
 */
public interface OrderProductAssociationMapper 
{
    /**
     * 查询订单-产品关联
     * 
     * @param id 订单-产品关联主键
     * @return 订单-产品关联
     */
    public OrderProductAssociation selectOrderProductAssociationById(Long id);

    /**
     * 通过订单id获取商品关联信息
     * @param orderId
     * @return
     */
    public List<OrderProductAssociation> selectOrderProductAssociationByOrderId(Long orderId);

    /**
     * 查询订单-产品关联列表
     * 
     * @param orderProductAssociation 订单-产品关联
     * @return 订单-产品关联集合
     */
    public List<OrderProductAssociation> selectOrderProductAssociationList(OrderProductAssociation orderProductAssociation);

    /**
     * 新增订单-产品关联
     * 
     * @param orderProductAssociation 订单-产品关联
     * @return 结果
     */
    public int insertOrderProductAssociation(OrderProductAssociation orderProductAssociation);

    public int batchInsertOrderProductAssociation(List<OrderProductAssociation> orderProductAssociation);

    /**
     * 修改订单-产品关联
     * 
     * @param orderProductAssociation 订单-产品关联
     * @return 结果
     */
    public int updateOrderProductAssociation(OrderProductAssociation orderProductAssociation);

    /**
     * 删除订单-产品关联
     * 
     * @param id 订单-产品关联主键
     * @return 结果
     */
    public int deleteOrderProductAssociationById(Long id);

    /**
     * 批量删除订单-产品关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderProductAssociationByIds(Long[] ids);
}
